package com.itheima.elasticsearchdemo2.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Goods {
    private double id;
    private String title;
    private double price;
    private double stock;
    private double saleNum;
    private Date   createTime;
    private String categoryName;
    private String brandName;
    private Map    spec;

    //用于接收数据库的数据
    @JSONField(serialize = false)
    private String specStr;


}